//
//  SecondDetailViewController.m
//  225视听百科
//
//  Created by 张潇 on 14/12/30.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "SecondDetailViewController.h"

@interface SecondDetailViewController ()

@end

@implementation SecondDetailViewController


- (void)dealloc
{
    [_detailLabel release];
    [super dealloc];
}


-(instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        
    }
    return self;
}



- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor lightGrayColor];
    [self createView];
}


-(void)createView
{
    UIImageView *img = [[UIImageView alloc] initWithFrame:CGRectMake(15, 10, self.view.frame.size.width - 20, self.view.frame.size.height / 4 + 20)];
    img.backgroundColor = [UIColor grayColor];
    [self.view addSubview:img];
    [img release];
    
    
    self.detailLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 20, self.view.frame.size.width - 40, self.view.frame.size.height / 4 - 25)];
    _detailLabel.textColor = [UIColor whiteColor];
    _detailLabel.numberOfLines = 0;
    _detailLabel.text = _detailInfo;
    [self.view addSubview:_detailLabel];
    [_detailLabel release];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
